@extends('admin.main')
@section('content')
    <div class="daohang">
        <ul>
            <li>
                <button type="button" class="am-btn am-btn-default am-radius am-btn-xs">就诊人管理>
                </button>
            </li>
            <li>
                <button type="button" class="am-btn am-btn-default am-radius am-btn-xs">就诊人列表
                </button>
            </li>
        </ul>
    </div>
    <div class="admin-biaogelist">

        <div class="listbiaoti am-cf">
            <ul class="am-icon-flag on"> 就诊人管理</ul>
            {{--<dl class="am-icon-home" style="float: right;"> 当前位置：首页 ><a href="#">医师列表</a></dl>--}}
        </div>

        <div class="am-btn-toolbars am-btn-toolbar am-kg am-cf">
            <ul>

                {{--<li>
                    <div class="am-btn-group am-btn-group-xs">
                        <select data-am-selected="{btnWidth: 90, btnSize: 'sm', btnStyle: 'default'}">
                            <option value="b">医师分类</option>
                            <option value="o">下架</option>
                        </select>
                    </div>
                </li>--}}

                <form action="{{urlAdmin('member','getIndex')}}">
                    <li><input type="text" class="am-form-field am-input-sm am-input-xm" name="keywords" placeholder="关键词搜索" /></li>
                    <li><button type="submit" class="am-btn am-radius am-btn-xs am-btn-success" style="margin-top: -1px;">搜索</button></li>
                </form>
            </ul>
        </div>


        <form class="am-form am-g">
            <table width="100%" class="am-table am-table-bordered am-table-radius am-table-striped">
                <thead>
                <tr class="am-success" align="center">
                    <th class="table-id">ID</th>
                    <th class="table-title">真实姓名</th>
                    <th class="table-title" >手机</th>
                    <th class="table-id" style="width: 20%;">就诊卡绑定状态</th>
                    <th class="table-id" style="width: 30%;">注册时间</th>
                    <th width="163px" class="table-set" style="width: 10%;">操作</th>
                </tr>
                </thead>
                <tbody>
                @if(!empty($data['data']))
                @foreach($data['data'] as $row)
                <tr>
                    <td>{{$row['id']}}</td>
                    <td>{{$row['name']}}</td>
                    <td>{{$row['mobile']}}</td>
                    <td>@if(isset($row['card'])){{$row['card']}} @else 未绑定! @endif </td>
                    <td>{{$row['created_at']}}</td>
                    <td><div class="am-btn-toolbar">
                            <div class="am-btn-group am-btn-group-xs">
                                {{--<button class="am-btn am-btn-default am-btn-xs am-text-success am-round"><span class="am-icon-search"></span></button>--}}
              <!--编辑 -->          <a href="{{url('center/member/edit-member?id='.$row['id'])}}" class="am-btn am-btn-default am-btn-xs am-text-secondary am-round"><span class="am-icon-pencil-square-o"></span></a>
                                {{--<button class="am-btn am-btn-default am-btn-xs am-text-warning  am-round"><span class="am-icon-copy"></span></button>--}}
              <!--删除 -->          <a href="{{url('center/member/del-member?id='.$row['id'])}}" onclick= "return confirm('确定删除?');" class="am-btn am-btn-default am-btn-xs am-text-danger am-round"><span class="am-icon-trash-o"></span></a>
                            </div>
                        </div>
                    </td>
                </tr>
                @endforeach
                @else
                    <tr>
                        <td colspan="8" style="text-align: center"><span>暂无数据~</span></td>
                    </tr>
                @endif
                </tbody>

            </table>

            <ul class="am-pagination am-fr">
                <li class="am-disabled"><a href="#">«</a></li>
                @foreach($data['pageNoList'] as $v)
                    @if($data['current_page']==$v)
                        <li class="am-active"><a href="{{urlAdmin('member','getIndex')}}?page={{$v}}">{{$v}}</a></li>
                    @else
                        <li><a href="{{urlAdmin('member','getIndex')}}?page={{$v}}">{{$v}}</a></li>
                    @endif
                @endforeach
                <li><a href="#">»</a></li>
            </ul>
            
            <hr />
        </form>

       @include('admin.footer')

@endsection